package com.chixing.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author smith
 * @since 2025-05-21
 */
public class Dish implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品id-主键
     */
    @TableId(value = "dish_id", type = IdType.AUTO)
    private Integer dishId;

    /**
     * 菜品类型-外键
     */
    private Integer typeId;

    /**
     * 菜品名称
     */
    private String dishName;

    /**
     * 菜品图片
     */
    private String dishImg;

    /**
     * 菜品现卖价格
     */
    private Float dishPrice;

    /**
     * 菜品原价
     */
    private Float dishOriginPrice;

    /**
     * 0:有效 1:已下架（已删除）
     */
    private Integer dishStatus;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    private Integer version;

    public Integer getDishId() {
        return dishId;
    }

    public void setDishId(Integer dishId) {
        this.dishId = dishId;
    }
    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }
    public String getDishName() {
        return dishName;
    }

    public void setDishName(String dishName) {
        this.dishName = dishName;
    }
    public String getDishImg() {
        return dishImg;
    }

    public void setDishImg(String dishImg) {
        this.dishImg = dishImg;
    }
    public Float getDishPrice() {
        return dishPrice;
    }

    public void setDishPrice(Float dishPrice) {
        this.dishPrice = dishPrice;
    }
    public Float getDishOriginPrice() {
        return dishOriginPrice;
    }

    public void setDishOriginPrice(Float dishOriginPrice) {
        this.dishOriginPrice = dishOriginPrice;
    }
    public Integer getDishStatus() {
        return dishStatus;
    }

    public void setDishStatus(Integer dishStatus) {
        this.dishStatus = dishStatus;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    @Override
    public String toString() {
        return "Dish{" +
            "dishId=" + dishId +
            ", typeId=" + typeId +
            ", dishName=" + dishName +
            ", dishImg=" + dishImg +
            ", dishPrice=" + dishPrice +
            ", dishOriginPrice=" + dishOriginPrice +
            ", dishStatus=" + dishStatus +
            ", createTime=" + createTime +
            ", updateTime=" + updateTime +
            ", version=" + version +
        "}";
    }
}
